import request from '@/utils/request'
export function GenerateExcel(data) {
  // 如果没有table_name参数 报错
  if (!data.table_name) {
    return new Promise((resolve, reject) => {
      reject('table_name is required')
    })
  }
  return request({
    url: '/crm/api/generate_excel/',
    headers: { 'content-type': 'application/json' },
    method: 'post',
    data: data,
    timeout: 1000000
  })
}
